/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. 
 */
package com.icinfo.cloud.provider.punish.config.controller;

import com.icinfo.cloud.provider.punish.config.service.IConfigCaseTagService;
import com.icinfo.cloud.provider.punish.config.vo.CaseTagVo;
import com.icinfo.framework.common.web.Result;
import com.icinfo.framework.core.web.BaseController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 描述: 案件标签表 case_tag_record 对应的Controller类.<br>
 *
 * @author lxj
 * @date 2022年02月23日
 */
@RestController
@RequestMapping("/punish/ucase/case/tag")
public class ConfigCaseTagController extends BaseController {
    /**
     * 日志记录器
     */
    private static final Logger logger = LoggerFactory.getLogger(ConfigCaseTagController.class);

    @Autowired
    private IConfigCaseTagService caseTagRecordService;


    /***
     * 获取案件标签列表
     * @author lxj
     * @date  2022/2/23
     * @return Result
     **/
    @PostMapping("/getCaseTagList")
    public Result<List<CaseTagVo>> getCaseTagList() {
        List<CaseTagVo> list = caseTagRecordService.getCaseTagList();
        return Result.success(list);
    }


}